const LOGGED = function (req, res, next) {
    sid = req.sessionID;
    // console.log(sid);
    req.sessionStore.get(sid, (err, session) => {
        if (err) {
            res.send({ code: 400, msg: '失败', err })
        }
        if (session) next()
        else return res.send({ code: 400, msg: '未登录' })
    })
}
module.exports = {
    LOGGED
}